package com.linln.modules.message.service.impl;

import com.linln.modules.message.domain.MessageInfo;
import com.linln.modules.message.domain.MessageMemberLog;
import com.linln.modules.message.repository.MessageMemberLogRepository;
import com.linln.modules.message.service.MessageMemberLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MessageMemberLogServiceImpl implements MessageMemberLogService {

    @Autowired
    private  MessageMemberLogRepository messageMemberLogRepository;

    @Override
    public List<MessageMemberLog> getMemberListByMessage(Long messageId) {
        List<MessageMemberLog> messageMemberLogs = messageMemberLogRepository.queryUserListByMessage(messageId);
        return messageMemberLogs;
    }

    @Override
    public MessageMemberLog insertMessageMemberLog(MessageMemberLog messageMemberLog) {
        MessageMemberLog save = messageMemberLogRepository.save(messageMemberLog);
        return save;
    }
}
